40823152網際內容管理

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • Portable Python
  • w1-w3
    • Useing a portable system
    • Create a new portable system
  • W9
    • Bython reads exam scores
  • W10~W12
    • w10
      • www web
    • W11
    • W12
  • W13~W15
    • W13
    • W14
      • Solvespace
    • w15
      • Replit
      • replit_new_repository
  • W16
    • w16_replit
    • get_Meteorological_data
  • W17
    • W17_replit
  • Brython
    • 0. for 1+10
    • 1. Bython reads exam scores
    • 2. get_Meteorological_data
    • test
      • test2
  • Fault
    • Deploy to GitHub Pages
    • invalid path
Fault << Previous Next >> invalid path

Deploy to GitHub Pages

Problem:

Encountered a problem while deploying GitHub Pages.

We can see in the image below that the deployment was unsuccessful.


So, I clicked on the URL provided when the error occurred.

error occurred URL:

https://pipelines.actions.githubusercontent.com/Hw3e2PMeyWV2jEBbDPrdBukQyp2Y4L1NLtiVjVuuDxGPGj0j0I/_apis/pipelines/workflows/4411085700/artifacts?api-version=6.0-preview

We can see in the information below that it says "unauthorized to access this resource."

{"$id":"1","innerException":null,"message":"The user 'System:PublicAccess;aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.","typeName":"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server","typeKey":"UnauthorizedRequestException","errorCode":0,"eventId":3000}


So, I created a new token to gain access.

Token:https://github.com/settings/tokens?page=1

Tokem introduce:

Tokens you have generated that can be used to access the GitHub API.


To create a Personal Access Token (classic) in GitHub, please follow these steps:

  1. Login to your GitHub account and click on your profile picture in the top right corner.

  2. Select "Settings" from the dropdown menu.

  3. From the left-hand menu, choose "Personal access tokens."

  4. Click on the "Generate new token" button.

  5. In the "Token description" field, enter a description that will help you identify the purpose of this token.

  6. Choose the necessary permissions for the token. For example, you may need to select the "repo" scope to access repositories.

  7. Once you've selected the permissions, click on the "Generate token" button.

  8. Your token will be generated, and you will be shown the token value.

  9. Copy the token and store it in a secure place, as GitHub will not display the token value again.

That's it! You can now use the token to access GitHub APIs or perform actions that require authentication.


Fault << Previous Next >> invalid path

Copyright © All rights reserved | This template is made with by Colorlib